TenWebOptimizer\OptimizerUtils D

Total Complexity 523
Dependencies 18
Dependents 31
Total lines 2,401
Lines of code 1,769
Logical lines of code 987
Comment lines 285
Methods 94
Properties 1

Methods 94

Method Rating Maintainability Complexity Lines of code
clear_third_party_cache()
C
37 27 64
serve_different_sizes_for_critical_bg_image()
B
42 20 48
replace_bg()
B
41 18 48
regenerate_critical()
B
37 16 77
init_defines()
B
43 16 52
substr_replace()
A
48 15 33
init_flow_score_check()
A
39 12 61
delete_all_cache_file()
A
50 14 26
is_pagespeed_image_optimization_enables()
A
56 13 16
set_global_mode()
A
49 12 29
two_update_subscription()
A
44 11 39
get_post_id()
A
45 11 39
assemble_parsed_url()
A
56 12 15
cache_compare()
A
49 11 29
injectCriticalBg()
A
50 11 25
cache_files_parsing_array()
A
48 9 32
get_current_post_info()
A
50 9 28
check_page_has_no_redirects()
A
48 8 33
add_wpml_home_pages_into_critical_pages()
A
51 8 27
get_modes()
A
52 8 23
clear_iframe_src()
A
43 6 52
update_post()
A
53 8 22
two_critical_status()
A
54 8 20
get_tenweb_connection_link()
A
47 7 33
wp_maybe_generate_attachment_metadata()
A
55 8 17
clear_cloudflare_cache()
S
50 7 27
replace_font()
S
52 7 24
two_google_check_score()
S
47 6 34
download_critical()
S
47 6 34
delete_critical_page()
S
51 6 24
generate_wpml_home_pages_critical_css()
S
53 6 23
triggerPostOptimizationTasks()
S
48 5 32
check_plugin_update()
S
62 6 11
get_wpml_home_urls()
S
52 5 25
tweak_cdn_url_if_needed()
S
57 5 16
set_critical()
S
56 5 16
map_deep()
S
58 5 15
get_page_url()
S
59 5 14
delete_define()
S
60 5 12
get_url_query()
S
62 5 11
is_rest()
S
61 5 11
delete_so_page()
S
54 4 21
get_permalink_name_by_id()
S
55 4 19
check_score()
S
56 4 18
testWebPDelivery()
S
56 4 18
inject_in_html()
S
57 4 17
is_tenweb_booster_connected()
S
75 5 3
maybe_replace_cdn_path()
S
64 5 9
get_default_critical_pages()
S
51 3 27
siteurl_not_root()
S
62 4 11
update_connection_flow_progress()
S
52 3 25
update_site_state()
S
48 2 34
filter_incompatible_plugins()
S
58 3 16
is_plugin_active()
S
63 4 10
replace_google_font_url()
S
58 3 15
is_paid_user()
S
73 4 4
get_meta_values()
S
61 3 12
get_wpml_post_flag_url()
S
61 3 12
remove_domain_part()
S
63 3 11
get_worker_script()
S
53 2 24
remove_url_protocol()
S
63 3 10
mbstring_available()
S
64 3 10
flushCloudflareCache()
S
64 3 10
is_pagespeed_lazyload_enabled()
S
76 3 3
is_pagespeed_js_defer_enabled()
S
76 3 3
strlen()
S
67 3 7
strpos()
S
67 3 7
split_css_to_arr()
S
64 3 9
findArr()
S
68 3 7
isJson()
S
77 3 3
delete_cache_file()
S
64 3 10
add_log_for_score_check_flow()
S
61 2 12
get_conflicting_plugins()
S
62 2 11
get_ao_wp_site_url_parts()
S
69 2 7
is_protocol_relative()
S
68 2 7
path_canonicalize()
S
60 1 15
is_pagespeed_enabled()
S
78 2 3
warmup_cache()
S
68 2 6
check_if_hosted_website()
S
71 2 6
purge_pagespeed_cache()
S
67 2 7
get_javascipt_type()
S
74 2 4
two_redirect()
S
69 2 7
update_critical_statuses()
S
67 2 7
getCriticalPages()
S
65 2 9
stripslashes_deep()
S
72 2 5
send_data_to_performance()
S
60 1 14
removeBgImageMarkers()
S
65 1 11
preg_grep_keys()
S
77 1 3
delete_files_by_prefix()
S
72 1 5
delete_all_cache_db()
S
65 1 8
getImageIdByUrl()
S
66 1 7
has_changed_bg_image()
S
80 1 3
str_is_valid_regex()
S
68 1 7
is_wpml_active()
S
80 1 3